
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<link type='text/css' href='../Resource/css/homestyles.css' rel='stylesheet' />
<link rel="stylesheet" type="text/css" href="../Resource/css/sidebar.css" />

<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type='text/javascript' src='../Resource/js/fixed.js'></script>
<script type='text/javascript' src='../Resource/js/dialog.js'></script>
<script type='text/javascript' src='../Resource/js/jquery.simplemodal.js'></script>
<script type='text/javascript' src='../Resource/js/ui.core.js'></script>
<script type="text/javascript" src="../Resource/js/query-1.2.1.min.js"></script>



<script src="../Resource/js/sidebar.js" type="text/javascript"></script>

<link rel="stylesheet" type="text/css" href="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/themes/base/jquery-ui.css">
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.3.2/jquery.min.js"></script>
<script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jqueryui/1.7.1/jquery-ui.min.js"></script>



<!--[if lt IE 8]>
<style type="text/css">
li a {display:inline-block;
}
li a {display:block;
}
</style>
<![endif]-->
</head>

<body>

<div class="container">


<?php include("sidebar.php");?>

	<div id="content">
	
	<?php include 'header.php';?>
    <div id="wrapper">
    
			<ul>    		
    			<?php
				include '../support/cutDes.php';
				if(isset($_GET['result_for'])){
					$result = $DB->search($_GET['result_for']);
					while($row = mysql_fetch_array($result)){
				?>
							
					<li>
						<div class="item">
							<a href="Detail.php?ID=<?php echo $row['ID']; ?>" title="Uniform Tire Quality Grade" onClick="return popup(this,'cmwindow')">
										<img src="../support/getavatar.php?ID=<?php echo $row['STT']; ?>" alt="angri birds" /></a>
									
									<div class="infosearch">
									
											<div class="title-search"><?php echo $row['TEN_UNG_DUNG']; ?></div>
											<div class="title-des"><?php echo substr($row['MO_TA'], 0, 300)." [...]"; ?></div>
											<div class="install"> <a href="#"><img src="../Resource/images/download.png"/></a></div>
									</div><!--  end .info -->
						</div>
					</li>
				<?php 
					} // end while
				} // end If
				?>
			</ul>
   	</div>
	</div>
<div style="display: none;" id="example" title="My First Ajax Dialog"></div>
</body>
</html>
